package pumpkin;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.Point;

public class Rectangle extends Shape
{
	private int height;
	private int width;
	private Point vert;
	
	public Rectangle(Color a, int height, int width, int x, int y)
	{
		super(a);
		this.height = height;
		this.width = width;
		vert = new Point(x,y);
		
	}
	@Override
	void draw(Graphics g)
	{
		g.setColor(super.getColor());
		g.fillRect(vert.x, vert.y, width, height);
		

	}

}
